package com.example.spring.bean;

/**
 * ClassName:People
 * Package:com.example.spring.bean
 * Description:
 *
 * @Author:ZhangXin
 * @Create:2023/5/8-16:49
 * @Version:v1.0
 */
public class People {
    private String name;
    private int age;
    private boolean sex;


    //c命名空间是简化构造方法的,c命名空间是基于构造方法的
    public People(String name, int age, boolean sex) {
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "People{" +
               "name='" + name + '\'' +
               ", age=" + age +
               ", sex=" + sex +
               '}';
    }
}
